nfc7spi 2.2.2
Loading...
Searching...
No Matches
nfc7spi.h
Go to the documentation of this file.
1/****************************************************************************
2** Copyright (C) 2026 MikroElektronika d.o.o.
3** Contact: https://www.mikroe.com/contact
4**
5** Permission is hereby granted, free of charge, to any person obtaining a copy
6** of this software and associated documentation files (the "Software"), to deal
7** in the Software without restriction, including without limitation the rights
8** to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9** copies of the Software, and to permit persons to whom the Software is
10** furnished to do so, subject to the following conditions:
11** The above copyright notice and this permission notice shall be
12** included in all copies or substantial portions of the Software.
13**
14** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
16** OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
19** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20** USE OR OTHER DEALINGS IN THE SOFTWARE.
21****************************************************************************/
22
27
28#ifndef NFC7SPI_H
29#define NFC7SPI_H
30
31#ifdef __cplusplus
32extern "C"{
33#endif
34
39#ifdef PREINIT_SUPPORTED
40#include "preinit.h"
41#endif
42
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
45 #include "delays.h"
46 #endif
47#endif
48
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
51#include "drv_spi_master.h"
52#include "spi_specifics.h"
53
59
64
69
74#define NFC7SPI_NCI_PKT_MT_DATA 0x00
75#define NFC7SPI_NCI_PKT_MT_CTRL_CMD 0x01
76#define NFC7SPI_NCI_PKT_MT_CTRL_RSP 0x02
77#define NFC7SPI_NCI_PKT_MT_CTRL_NTF 0x03
78#define NFC7SPI_NCI_PKT_MT_SHIFT 5
79#define NFC7SPI_NCI_PKT_MT_MASK 0xE0
80#define NFC7SPI_NCI_PKT_PBF_COMPLETE 0x00
81#define NFC7SPI_NCI_PKT_PBF_NOT_COMPLETE 0x01
82#define NFC7SPI_NCI_PKT_PBF_SHIFT 4
83#define NFC7SPI_NCI_PKT_PBF_MASK 0x10
84#define NFC7SPI_NCI_PKT_CTRL_GID_MASK 0x0F
85#define NFC7SPI_NCI_PKT_CTRL_OID_MASK 0x3F
86#define NFC7SPI_NCI_PKT_DATA_CID_MASK 0x0F
87#define NFC7SPI_NCI_PKT_DATA_RFU 0x00
88
93#define NFC7SPI_NCI_GID_CORE 0x00
94#define NFC7SPI_NCI_GID_RF_MGMT 0x01
95#define NFC7SPI_NCI_GID_PROP 0x0F
96
101#define NFC7SPI_NCI_OID_CORE_RESET 0x00
102#define NFC7SPI_NCI_OID_CORE_INIT 0x01
103#define NFC7SPI_NCI_OID_CORE_SET_CONFIG 0x02
104#define NFC7SPI_NCI_OID_CORE_GET_CONFIG 0x03
105#define NFC7SPI_NCI_OID_CORE_CONN_CREATE 0x04
106#define NFC7SPI_NCI_OID_CORE_CONN_CLOSE 0x05
107#define NFC7SPI_NCI_OID_CORE_CONN_CREDITS 0x06
108#define NFC7SPI_NCI_OID_CORE_GEN_ERR_STAT 0x07
109#define NFC7SPI_NCI_OID_CORE_INTF_ERR_STAT 0x08
110#define NFC7SPI_NCI_OID_RF_DISCOVER_MAP 0x00
111#define NFC7SPI_NCI_OID_RF_SET_ROUTING 0x01
112#define NFC7SPI_NCI_OID_RF_GET_ROUTING 0x02
113#define NFC7SPI_NCI_OID_RF_DISCOVER 0x03
114#define NFC7SPI_NCI_OID_RF_DISCOVER_SELECT 0x04
115#define NFC7SPI_NCI_OID_RF_INTF_ACTIVATED 0x05
116#define NFC7SPI_NCI_OID_RF_DEACTIVATE 0x06
117#define NFC7SPI_NCI_OID_RF_FIELD 0x07
118#define NFC7SPI_NCI_OID_RF_T3T_POLLING 0x08
119#define NFC7SPI_NCI_OID_RF_EE_ACTION 0x09
120#define NFC7SPI_NCI_OID_RF_EE_DISCOVERY_REQ 0x0A
121#define NFC7SPI_NCI_OID_RF_PARAMETER_UPDATE 0x0B
122#define NFC7SPI_NCI_OID_PROP_SET_PWR_MODE 0x00
123#define NFC7SPI_NCI_OID_PROP_ACT 0x02
124#define NFC7SPI_NCI_OID_PROP_RF_PRES_CHECK 0x11
125#define NFC7SPI_NCI_OID_PROP_RF_LPCD_TRACE 0x13
126#define NFC7SPI_NCI_OID_PROP_RF_GET_TRANSIT 0x14
127#define NFC7SPI_NCI_OID_PROP_TEST_PRBS 0x30
128#define NFC7SPI_NCI_OID_PROP_TEST_ANTENNA 0x3D
129 // nfc7spi_reg
131
136
141
146#define NFC7SPI_NCI_CORE_RESET_KEEP_CFG 0x00
147#define NFC7SPI_NCI_CORE_RESET_RESET_CFG 0x01
148#define NFC7SPI_NCI_CORE_RESET_NTF_NCI_VER_20 0x20
149#define NFC7SPI_NCI_CORE_INIT_FEATURE_DIS 0x00
150#define NFC7SPI_NCI_CORE_STANDBY_DISABLE 0x00
151#define NFC7SPI_NCI_CORE_STANDBY_ENABLE 0x01
152#define NFC7SPI_NCI_CORE_STANDBY_AUTO 0x02
153
158#define NFC7SPI_NCI_STAT_OK 0x00
159#define NFC7SPI_NCI_STAT_REJECTED 0x01
160#define NFC7SPI_NCI_STAT_RF_FRAME_CORRUPTED 0x02
161#define NFC7SPI_NCI_STAT_FAILED 0x03
162#define NFC7SPI_NCI_STAT_NOT_INITIALIZED 0x04
163#define NFC7SPI_NCI_STAT_SYNTAX_ERROR 0x05
164#define NFC7SPI_NCI_STAT_SEMANTIC_ERROR 0x06
165#define NFC7SPI_NCI_STAT_UNK_GID 0x07
166#define NFC7SPI_NCI_STAT_UNK_OID 0x08
167#define NFC7SPI_NCI_STAT_INVALID_PARAM 0x09
168#define NFC7SPI_NCI_STAT_MSG_SIZE_EXCEEDED 0x0A
169#define NFC7SPI_NCI_STAT_DISC_ALRDY_STARTED 0xA0
170#define NFC7SPI_NCI_STAT_DISC_T_ACT_FAILED 0xA1
171#define NFC7SPI_NCI_STAT_DISC_TEAR_DOWN 0xA2
172#define NFC7SPI_NCI_STAT_RF_TX_ERROR 0xB0
173#define NFC7SPI_NCI_STAT_RF_PROTOCOL_ERROR 0xB1
174#define NFC7SPI_NCI_STAT_RF_TIMEOUT_ERROR 0xB2
175
180#define NFC7SPI_NCI_RF_TECH_PASSIVE_POLL_NFC_A 0x00
181#define NFC7SPI_NCI_RF_TECH_PASSIVE_POLL_NFC_B 0x01
182#define NFC7SPI_NCI_RF_TECH_PASSIVE_POLL_NFC_F 0x02
183#define NFC7SPI_NCI_RF_TECH_PASSIVE_POLL_15693 0x06
184#define NFC7SPI_NCI_RF_EXE_EVERY_DISC_PERIOD 0x01
185
190#define NFC7SPI_NCI_RF_PROT_UNDETERMINED 0x00
191#define NFC7SPI_NCI_RF_PROT_T1T 0x01
192#define NFC7SPI_NCI_RF_PROT_T2T 0x02
193#define NFC7SPI_NCI_RF_PROT_T3T 0x03
194#define NFC7SPI_NCI_RF_PROT_ISODEP 0x04
195#define NFC7SPI_NCI_RF_PROT_NFCDEP 0x05
196#define NFC7SPI_NCI_RF_PROT_T5T 0x06
197#define NFC7SPI_NCI_RF_PROT_MIFARE 0x80
198
203#define NFC7SPI_NCI_RF_INTF_UNDETERMINED 0x00
204#define NFC7SPI_NCI_RF_INTF_FRAME 0x01
205#define NFC7SPI_NCI_RF_INTF_ISODEP 0x02
206#define NFC7SPI_NCI_RF_INTF_NFCDEP 0x03
207#define NFC7SPI_NCI_RF_INTF_TAGCMD 0x80
208#define NFC7SPI_NCI_RF_MAP_POLL_MODE 0x01
209
214#define NFC7SPI_NCI_RF_DEACTIVATE_IDLE 0x00
215#define NFC7SPI_NCI_RF_DEACTIVATE_SLEEP 0x01
216#define NFC7SPI_NCI_RF_DEACTIVATE_SLEEP_AF 0x02
217#define NFC7SPI_NCI_RF_DEACTIVATE_DISCOVERY 0x03
218
223#define NFC7SPI_NCI_RF_CONN_ID_STATIC 0x00
224#define NFC7SPI_NCI_RF_CONN_ID_1 0x01
225#define NFC7SPI_NCI_RF_CONN_ID_2 0x02
226#define NFC7SPI_NCI_RF_DISC_MORE_NTF_FOLLOW 0x02
227
232#define NFC7SPI_T1T_CMD_RID 0x78
233#define NFC7SPI_T1T_CMD_RALL 0x00
234#define NFC7SPI_T1T_CMD_READ 0x01
235#define NFC7SPI_T1T_CMD_WRITE_E 0x53
236#define NFC7SPI_T1T_CMD_WRITE_NE 0x1A
237#define NFC7SPI_T1T_CMD_RSEG 0x10
238#define NFC7SPI_T1T_CMD_READ8 0x02
239#define NFC7SPI_T1T_CMD_WRITE_E8 0x54
240#define NFC7SPI_T1T_CMD_WRITE_NE8 0x1B
241
246#define NFC7SPI_T2T_CMD_READ 0x30
247#define NFC7SPI_T2T_CMD_WRITE 0xA2
248#define NFC7SPI_T2T_CMD_SECTOR_SELECT 0xC2
249#define NFC7SPI_T2T_ACK 0x0A
250
255#define NFC7SPI_T4T_RSP_COMPLETE_1 0x90
256#define NFC7SPI_T4T_RSP_COMPLETE_2 0x00
257#define NFC7SPI_T4T_CLA_NO_SECURE 0x00
258#define NFC7SPI_T4T_INS_SELECT 0xA4
259#define NFC7SPI_T4T_P1_SELECT_BY_NAME 0x04
260#define NFC7SPI_T4T_P2_ONLY_OCCURANCE 0x00
261#define NFC7SPI_T4T_LE_RSP_MAY_PRESENT 0x00
262#define NFC7SPI_T4T_PPSE_APDU "2PAY.SYS.DDF01"
263
268#define NFC7SPI_ISO15693_FLAG_DR_HIGH 0x02
269#define NFC7SPI_ISO15693_CMD_READ_SINGLE 0x20
270#define NFC7SPI_ISO15693_CMD_WRITE_SINGLE 0x21
271#define NFC7SPI_ISO15693_RSP_OK 0x00
272
277#define NFC7SPI_MFC_REQ_XCHG_DATA 0x10
278#define NFC7SPI_MFC_REQ_SECTOR_SEL 0x32
279#define NFC7SPI_MFC_REQ_AUTHENTICATE 0x40
280#define NFC7SPI_MFC_KEY_SELECTOR_A_EMB 0x10
281#define NFC7SPI_MFC_CMD_READ 0x30
282#define NFC7SPI_MFC_CMD_WRITE 0xA0
283#define NFC7SPI_MFC_ACK 0x0A
284
289#define NFC7SPI_NCI_CORE_TOTAL_DURATION_510MS { 0x01, 0x00, 0x02, 0xFE, 0x01 }
290#define NFC7SPI_NCI_CORE_TAG_DETECTOR_DIS { 0x01, 0xA0, 0x40, 0x01, 0x00 }
291#define NFC7SPI_NCI_CORE_CLOCK_SEL_XTAL { 0x01, 0xA0, 0x03, 0x01, 0x08 }
292#define NFC7SPI_NCI_CORE_PMU_IRQ_EN_TVDD_3V3 { 0x01, 0xA0, 0x0E, 0x0B, 0x11, 0x01, 0x01, 0x01, \
293 0x00, 0x00, 0x00, 0x10, 0x00, 0xD0, 0x0C }
294#define NFC7SPI_NCI_CORE_RF_CONF { 0x09, \
295 0xA0, 0x0D, 0x03, 0x78, 0x0D, 0x02, \
296 0xA0, 0x0D, 0x03, 0x78, 0x14, 0x02, \
297 0xA0, 0x0D, 0x06, 0x4C, 0x44, 0x65, 0x09, 0x00, 0x00, \
298 0xA0, 0x0D, 0x06, 0x4C, 0x2D, 0x05, 0x35, 0x1E, 0x01, \
299 0xA0, 0x0D, 0x06, 0x82, 0x4A, 0x55, 0x07, 0x00, 0x07, \
300 0xA0, 0x0D, 0x06, 0x44, 0x44, 0x03, 0x04, 0xC4, 0x00, \
301 0xA0, 0x0D, 0x06, 0x46, 0x30, 0x50, 0x00, 0x18, 0x00, \
302 0xA0, 0x0D, 0x06, 0x48, 0x30, 0x50, 0x00, 0x18, 0x00, \
303 0xA0, 0x0D, 0x06, 0x4A, 0x30, 0x50, 0x00, 0x08, 0x00 }
304
309#define NFC7SPI_MAX_NCI_FRAME_SIZE 258
310#define NFC7SPI_TIMEOUT_INFINITE 0
311#define NFC7SPI_TIMEOUT_100MS 100
312#define NFC7SPI_TIMEOUT_1S 1000
313#define NFC7SPI_TIMEOUT_2S 2000
314
323#define NFC7SPI_SET_DATA_SAMPLE_EDGE SET_SPI_DATA_SAMPLE_EDGE
324#define NFC7SPI_SET_DATA_SAMPLE_MIDDLE SET_SPI_DATA_SAMPLE_MIDDLE
325 // nfc7spi_set
327
332
337
342#define NFC7SPI_MAP_MIKROBUS( cfg, mikrobus ) \
343 cfg.miso = MIKROBUS( mikrobus, MIKROBUS_MISO ); \
344 cfg.mosi = MIKROBUS( mikrobus, MIKROBUS_MOSI ); \
345 cfg.sck = MIKROBUS( mikrobus, MIKROBUS_SCK ); \
346 cfg.cs = MIKROBUS( mikrobus, MIKROBUS_CS ); \
347 cfg.ven = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
348 cfg.irq = MIKROBUS( mikrobus, MIKROBUS_INT )
349 // nfc7spi_map // nfc7spi
352
357typedef struct
358{
359 uint8_t sens_res[ 2 ];
360 uint8_t nfc_id_len;
361 uint8_t nfc_id[ 10 ];
362 uint8_t sel_res_len;
363 uint8_t sel_res[ 1 ];
364 uint8_t rats_len;
365 uint8_t rats[ 20 ];
366
368
373typedef struct
374{
376 uint8_t sens_res[ 12 ];
378 uint8_t attrib_res[ 17 ];
379
381
386typedef struct
387{
388 uint8_t bitrate;
390 uint8_t sens_res[ 18 ];
391
393
398typedef struct
399{
400 uint8_t afi;
401 uint8_t dsf_id;
402 uint8_t id[ 8 ];
403
405
418
423typedef struct
424{
425 uint8_t intf;
426 uint8_t protocol;
427 uint8_t mode_tech;
428 uint8_t more_tags;
430
432
437typedef struct
438{
439 uint8_t msg_type;
440 uint8_t gid;
441 uint8_t oid;
442 uint8_t payload_len;
444
446
451typedef struct
452{
453 uint8_t cid;
454 uint8_t payload_len;
456
458
463typedef struct
464{
465 // Output pins
466 digital_out_t ven;
467
468 // Input pins
469 digital_in_t irq;
470
471 // Modules
472 spi_master_t spi;
473
474 pin_name_t chip_select;
475
480 uint16_t rsp_len;
481
482 uint8_t fw_version[ 3 ];
484
485} nfc7spi_t;
486
491typedef struct
492{
493 pin_name_t miso;
494 pin_name_t mosi;
495 pin_name_t sck;
496 pin_name_t cs;
497
498 pin_name_t ven;
499 pin_name_t irq;
500
501 uint32_t spi_speed;
502 spi_master_mode_t spi_mode;
503 spi_master_chip_select_polarity_t cs_polarity;
504
506
511typedef enum
512{
515
517
523
534
549
563
573
583
593
603
616err_t nfc7spi_tx ( nfc7spi_t *ctx, uint8_t *data_in, uint16_t len );
617
632err_t nfc7spi_rx ( nfc7spi_t *ctx, uint8_t *data_out, uint16_t *len, uint16_t timeout );
633
649err_t nfc7spi_trx ( nfc7spi_t *ctx, uint8_t *data_in, uint16_t in_len, uint8_t *data_out, uint16_t *out_len );
650
664
678err_t nfc7spi_pkt_ctrl_rx ( nfc7spi_t *ctx, nfc7spi_pkt_ctrl_t *pkt, uint16_t timeout );
679
694
708
722err_t nfc7spi_pkt_data_rx ( nfc7spi_t *ctx, nfc7spi_pkt_data_t *pkt, uint16_t timeout );
723
738
750
762
776err_t nfc7spi_core_standby ( nfc7spi_t *ctx, uint8_t mode );
777
790
802
814
826
838
850
862
874
886
899
910
924
937
952
953#ifdef __cplusplus
954}
955#endif
956#endif // NFC7SPI_H
957 // nfc7spi
959
960// ------------------------------------------------------------------------ END
#define NFC7SPI_MAX_NCI_FRAME_SIZE
NFC 7 SPI timeout setting.
Definition nfc7spi.h:309
err_t nfc7spi_core_clock_sel(nfc7spi_t *ctx)
NFC 7 SPI core clock sel function.
void nfc7spi_presence_check(nfc7spi_t *ctx, nfc7spi_rf_intf_t *rf_intf)
NFC 7 SPI presence check function.
err_t nfc7spi_pkt_ctrl_rx(nfc7spi_t *ctx, nfc7spi_pkt_ctrl_t *pkt, uint16_t timeout)
NFC 7 SPI packet control RX function.
err_t nfc7spi_reader_act_next(nfc7spi_t *ctx, nfc7spi_rf_intf_t *rf_intf)
NFC 7 SPI reader activate next function.
err_t nfc7spi_core_reset(nfc7spi_t *ctx)
NFC 7 SPI core reset function.
err_t nfc7spi_rx(nfc7spi_t *ctx, uint8_t *data_out, uint16_t *len, uint16_t timeout)
NFC 7 SPI RX function.
err_t nfc7spi_tx(nfc7spi_t *ctx, uint8_t *data_in, uint16_t len)
NFC 7 SPI TX function.
err_t nfc7spi_config_settings(nfc7spi_t *ctx)
NFC 7 SPI config settings function.
err_t nfc7spi_stop_discovery(nfc7spi_t *ctx)
NFC 7 SPI stop discovery function.
err_t nfc7spi_pkt_data_rx(nfc7spi_t *ctx, nfc7spi_pkt_data_t *pkt, uint16_t timeout)
NFC 7 SPI packet data RX function.
err_t nfc7spi_default_cfg(nfc7spi_t *ctx)
NFC 7 SPI default configuration function.
err_t nfc7spi_pkt_data_tx(nfc7spi_t *ctx, nfc7spi_pkt_data_t *pkt)
NFC 7 SPI packet data TX function.
err_t nfc7spi_core_total_duration(nfc7spi_t *ctx)
NFC 7 SPI core total duration function.
err_t nfc7spi_start_discovery(nfc7spi_t *ctx)
NFC 7 SPI start discovery function.
err_t nfc7spi_init(nfc7spi_t *ctx, nfc7spi_cfg_t *cfg)
NFC 7 SPI initialization function.
err_t nfc7spi_core_pmu(nfc7spi_t *ctx)
NFC 7 SPI core PMU function.
err_t nfc7spi_wait_discovery(nfc7spi_t *ctx, nfc7spi_rf_intf_t *rf_intf)
NFC 7 SPI wait discovery function.
err_t nfc7spi_core_standby(nfc7spi_t *ctx, uint8_t mode)
NFC 7 SPI core standby function.
err_t nfc7spi_core_tag_detector(nfc7spi_t *ctx)
NFC 7 SPI core tag detector function.
err_t nfc7spi_pkt_data_trx(nfc7spi_t *ctx, nfc7spi_pkt_data_t *pkt)
NFC 7 SPI packet data TRX function.
err_t nfc7spi_core_init(nfc7spi_t *ctx)
NFC 7 SPI core init function.
void nfc7spi_disable_device(nfc7spi_t *ctx)
NFC 7 SPI disable device function.
err_t nfc7spi_map_rf_interface(nfc7spi_t *ctx)
NFC 7 SPI map RF interface function.
void nfc7spi_reset_device(nfc7spi_t *ctx)
NFC 7 SPI reset device function.
void nfc7spi_cfg_setup(nfc7spi_cfg_t *cfg)
NFC 7 SPI configuration object setup function.
err_t nfc7spi_core_rf_config(nfc7spi_t *ctx)
NFC 7 SPI core RF config function.
void nfc7spi_enable_device(nfc7spi_t *ctx)
NFC 7 SPI enable device function.
err_t nfc7spi_reader_re_act(nfc7spi_t *ctx, nfc7spi_rf_intf_t *rf_intf)
NFC 7 SPI reader reactivate next function.
uint8_t nfc7spi_get_irq_pin(nfc7spi_t *ctx)
NFC 7 SPI get IRQ pin function.
err_t nfc7spi_pkt_ctrl_trx(nfc7spi_t *ctx, nfc7spi_pkt_ctrl_t *pkt)
NFC 7 SPI packet control TRX function.
err_t nfc7spi_reader_tag_cmd(nfc7spi_t *ctx, nfc7spi_pkt_data_t *pkt)
NFC 7 SPI reader tag cmd function.
err_t nfc7spi_trx(nfc7spi_t *ctx, uint8_t *data_in, uint16_t in_len, uint8_t *data_out, uint16_t *out_len)
NFC 7 SPI TRX function.
err_t nfc7spi_pkt_ctrl_tx(nfc7spi_t *ctx, nfc7spi_pkt_ctrl_t *pkt)
NFC 7 SPI packet control TX function.
nfc7spi_return_value_t
NFC 7 SPI Click return value data.
Definition nfc7spi.h:512
@ NFC7SPI_OK
Definition nfc7spi.h:513
@ NFC7SPI_ERROR
Definition nfc7spi.h:514
This file contains SPI specific macros, functions, etc.
NFC 7 SPI Click configuration object.
Definition nfc7spi.h:492
pin_name_t irq
Definition nfc7spi.h:499
spi_master_chip_select_polarity_t cs_polarity
Definition nfc7spi.h:503
pin_name_t sck
Definition nfc7spi.h:495
spi_master_mode_t spi_mode
Definition nfc7spi.h:502
pin_name_t mosi
Definition nfc7spi.h:494
uint32_t spi_speed
Definition nfc7spi.h:501
pin_name_t ven
Definition nfc7spi.h:498
pin_name_t miso
Definition nfc7spi.h:493
pin_name_t cs
Definition nfc7spi.h:496
NFC 7 SPI Click control packet object.
Definition nfc7spi.h:438
uint8_t oid
Definition nfc7spi.h:441
uint8_t gid
Definition nfc7spi.h:440
uint8_t payload[NFC7SPI_MAX_NCI_FRAME_SIZE - 3]
Definition nfc7spi.h:443
uint8_t payload_len
Definition nfc7spi.h:442
uint8_t msg_type
Definition nfc7spi.h:439
NFC 7 SPI Click data packet object.
Definition nfc7spi.h:452
uint8_t cid
Definition nfc7spi.h:453
uint8_t payload[NFC7SPI_MAX_NCI_FRAME_SIZE - 3]
Definition nfc7spi.h:455
uint8_t payload_len
Definition nfc7spi.h:454
NFC 7 SPI Click poll passive type A object.
Definition nfc7spi.h:358
uint8_t sel_res[1]
Definition nfc7spi.h:363
uint8_t nfc_id_len
Definition nfc7spi.h:360
uint8_t sens_res[2]
Definition nfc7spi.h:359
uint8_t rats[20]
Definition nfc7spi.h:365
uint8_t nfc_id[10]
Definition nfc7spi.h:361
uint8_t sel_res_len
Definition nfc7spi.h:362
uint8_t rats_len
Definition nfc7spi.h:364
NFC 7 SPI Click poll passive type B object.
Definition nfc7spi.h:374
uint8_t attrib_res[17]
Definition nfc7spi.h:378
uint8_t sens_res_len
Definition nfc7spi.h:375
uint8_t sens_res[12]
Definition nfc7spi.h:376
uint8_t attrib_res_len
Definition nfc7spi.h:377
NFC 7 SPI Click poll passive type F object.
Definition nfc7spi.h:387
uint8_t bitrate
Definition nfc7spi.h:388
uint8_t sens_res[18]
Definition nfc7spi.h:390
uint8_t sens_res_len
Definition nfc7spi.h:389
NFC 7 SPI Click poll passive type V/ISO15693 object.
Definition nfc7spi.h:399
uint8_t afi
Definition nfc7spi.h:400
uint8_t dsf_id
Definition nfc7spi.h:401
NFC 7 SPI Click discovered remote device properties object.
Definition nfc7spi.h:424
uint8_t more_tags
Definition nfc7spi.h:428
uint8_t intf
Definition nfc7spi.h:425
nfc7spi_rf_intf_info_t info
Definition nfc7spi.h:429
uint8_t protocol
Definition nfc7spi.h:426
uint8_t mode_tech
Definition nfc7spi.h:427
NFC 7 SPI Click context object.
Definition nfc7spi.h:464
spi_master_t spi
Definition nfc7spi.h:472
uint8_t next_tag_protocol
Definition nfc7spi.h:483
uint16_t rsp_len
Definition nfc7spi.h:480
digital_in_t irq
Definition nfc7spi.h:469
uint8_t fw_version[3]
Definition nfc7spi.h:482
uint8_t rsp[NFC7SPI_MAX_NCI_FRAME_SIZE]
Definition nfc7spi.h:479
nfc7spi_pkt_data_t pkt_data
Definition nfc7spi.h:477
uint8_t cmd[NFC7SPI_MAX_NCI_FRAME_SIZE]
Definition nfc7spi.h:478
digital_out_t ven
Definition nfc7spi.h:466
pin_name_t chip_select
Definition nfc7spi.h:474
nfc7spi_pkt_ctrl_t pkt_ctrl
Definition nfc7spi.h:476
NFC 7 SPI Click discovered remote device properties information object.
Definition nfc7spi.h:411
nfc7spi_rf_intf_info_app_t nfc_app
Definition nfc7spi.h:412
nfc7spi_rf_intf_info_vpp_t nfc_vpp
Definition nfc7spi.h:415
nfc7spi_rf_intf_info_bpp_t nfc_bpp
Definition nfc7spi.h:413
nfc7spi_rf_intf_info_fpp_t nfc_fpp
Definition nfc7spi.h:414